/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springmvcstudy.interceptor;

import com.jeff.springmvcstudy.util.LogUtil;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author winnie
 */
public class ControllerInterceptor1 implements HandlerInterceptor {
    private static final Logger LOG = LogUtil.getLogger(ControllerInterceptor1.class);

    @Override
    public boolean preHandle(HttpServletRequest hsr, HttpServletResponse hsr1, Object o) throws Exception {
        LOG.info("ControllerInterceptor1::preHandle()");
        return true;
    }

    @Override
    public void postHandle(HttpServletRequest hsr, HttpServletResponse hsr1, Object o, ModelAndView mav) throws Exception {
        LOG.info("ControllerInterceptor1::postHandle()");
        return;
    }

    @Override
    public void afterCompletion(HttpServletRequest hsr, HttpServletResponse hsr1, Object o, Exception excptn) throws Exception {
        LOG.info("ControllerInterceptor1::afterCompletion()");
        return;
    }

    
    
    
    
}
